home *** CD-ROM | disk | FTP | other *** search
/ Ahoy 1987 May / Ahoy_Magazine_87-05_1987_Double_L_Side_B.d64 / font editor.txt < prev    next >
Text File  |  2022-10-26  |  7KB  |  250 lines

  1. FONT EDITOR
  2. by Phyrne Bacon
  3.  
  4. A "font" is a definition of how each
  5. character is displayed on your
  6. screen. The font editor allows you
  7. alter the way characters are
  8. displayed on your screen. You can
  9. change just one character (for
  10. instance, remove the line that
  11. slashes a zero) or change as many
  12. characters as you want - even all of
  13. them.
  14.  
  15. You choose the character to edit by
  16. key, cursor, or screen code. The font
  17. editor displays all 256 characters of
  18. the font.
  19.  
  20. LOADING THE FIRST FONT
  21.  
  22. When the FONT EDITOR is run, it asks
  23. if you want to edit a "font." or a
  24. "set." type font.
  25.  
  26. Each "font." file includes both font
  27. sets, referred to as alphafont and
  28. betafont. Usually the alphafont is an
  29. uppercase font or a custom font, and
  30. the betafont is upper/ lowercase. If
  31. you pick "font.", you will be asked
  32. if you want to edit the alphafont or
  33. the betafont. To change to another
  34. font, see LOADING A FONT below.
  35.  
  36. Each "set." file includes only one
  37. font. If the file name ends with ".a"
  38. it is the alphafont. If it ends with
  39. a ".b" it is a betafont.
  40.  
  41. EDIT MODE
  42.  
  43. After the font is loaded, the
  44. computer will change from a screen
  45. with the built-in font to a new
  46. screen with the loaded font. The new
  47. screen will have a large
  48. representation of the letter A in the
  49. upper left hand corner in the design
  50. frame (a small letter A appears to
  51. the left of the design frame, and the
  52. screen code of the letter A appears
  53. to the right of the design frame). A
  54. partial list of the font editor
  55. commands is in the upper right hand
  56. corner (press I to see the complete
  57. list). A display of all 256
  58. characters is in the cursor select
  59. frame in the lower half of the
  60. screen.
  61.  
  62. EDITING A CHARACTER
  63.  
  64. When you begin, the cursor will be in
  65. the upper left hand corner of the
  66. design frame. To change a pixel, move
  67. the cursor to the pixel and press 3
  68. to turn the pixel on, or 4 to turn
  69. the pixel off. Use D to delete the
  70. row the cursor is on, or E to erase
  71. the column the cursor is on. The
  72. design frame has wrap: if the cursor
  73. goes off the right edge, it appears
  74. in the left column, or if it goes off
  75. the bottom edge it appears in the top
  76. row, and so on.
  77.  
  78. When a pixel is changed, it will be
  79. changed in the design frame, in
  80. memory, and in every copy of the
  81. character on the screen (you
  82. instantly see the effect of each
  83. change).
  84.  
  85. To shift a character upward use +, to
  86. shift it down use -, to shift it left
  87. use *, to shift it right use /. These
  88. shifts (rolls) are nondestructive:
  89. what goes over the top edge, appears
  90. on the bottom row, and so on.
  91.  
  92. CHOOSING A CHARACTER
  93.  
  94. To move to the following character,
  95. press f5. To move to the preceding
  96. character, press f7. To select a
  97. (nonreverse) character by pressing
  98. its key, first press f1. To use the
  99. cursor to select a character, first
  100. press f3. The cursor will move to the
  101. cursor select frame (the font
  102. display). Move the cursor to the
  103. desired character and press return.
  104. (The cursor select frame has wrap.)
  105. To select a character by screen code,
  106. first press f2.
  107.  
  108. COPYING A CHARACTER
  109.  
  110. To copy a character, press C (for
  111. copy). You will be asked to move the
  112. cursor to the character to be copied,
  113. and to press return, and then to move
  114. the cursor to the character to be
  115. copied to, and to press return. The
  116. new copy will then appear in the
  117. design frame.
  118.  
  119. REVERSE CHARACTERS
  120.  
  121. On most fonts, characters 128-255 are
  122. the reverse characters of 0-127. For
  123. example, reverse-A (129) has a pixel
  124. off wherever A (1) has a pixel on,
  125. and vice-versa. The reverse
  126. characters are used in the blinking
  127. cursor.
  128.  
  129. To make a reverse of a newly designed
  130. character, press R. This copies the
  131. reverse of the current character n
  132. onto n+128 (onto n-128 if n>=128),
  133. and moves the cursor to the new
  134. reverse character.
  135.  
  136. To save time, you can change any of
  137. the characters 0-127, and then make
  138. reverse copies of all of them at once
  139. by pressing f4.
  140.  
  141. Since reverse period is used in the
  142. character design frame, if there are
  143. no reverse characters in a font,
  144. press f4 to make the character design
  145. suddenly appear in the design frame.
  146.  
  147. EXITING FONT EDITOR
  148.  
  149. To exit FONT EDITOR, press Z (which
  150. ends the program and returns you to
  151. the usual built-in font), or the
  152. STOP-key (which leaves you in the
  153. custom font). To return to both the
  154. program and font, after any exit or
  155. error message, type RUN or, if you
  156. used the STOP-key, enter the CON
  157. command.
  158.  
  159. THE DISK DIRECTORY
  160.  
  161. You can exit the program at any time
  162. by pressing Z or the STOP-key. Type
  163. CAT, scratch or rename any file, read
  164. any disk directory and so on, and
  165. then return to the program by typing
  166. RUN (or CON, if you used the
  167. STOP-key). Stopping the program this
  168. way does not harm the font.
  169.  
  170. LOADING A FONT
  171.  
  172. To load a "set." font press L. To
  173. load a "font." font, press K. You
  174. will be asked for the name (the
  175. "set." or "font." will have been
  176. already typed in for you). If you are
  177. loading a "font." font, you will be
  178. asked if you want the alphafont or
  179. the betafont portion. Before the font
  180. is loaded, the new font name will be
  181. displayed.
  182.  
  183. GETTING GARBAGE ON THE SCREEN
  184.  
  185. If you press the Commodore key and
  186. the shift key at the same time while
  187. working on a font, you will get
  188. garbage on the screen. This is
  189. because the computer is using the
  190. non-existent second custom font for
  191. its character designs. To return to
  192. the readable custom font, press the
  193. Commodore key and the shift key at
  194. the same time. These keys toggle back
  195. and forth between the custom font and
  196. the non-existent second custom font.
  197.  
  198. SAVING A FONT
  199. (usual load address)
  200.  
  201. To save a font with the usual load
  202. address, press S. You will be asked
  203. the name ("set." will have been typed
  204. in for you - do not type the "set.").
  205. When asked about the load address,
  206. press U or carriage return. The font
  207. will be saved as a 9 block PRG-file.
  208. If a file with that name already
  209. exists, the program will end. (This
  210. doesn't harm the font.)  Then, if
  211. desired, you can then type CAT,
  212. scratch the existing file, type RUN,
  213. and save the font with that name; or
  214. just type RUN, press S to save the
  215. font with another name.
  216.  
  217. It is best to save temporary versions
  218. of a font frequently to avoid loss of
  219. designs due to power failures or
  220. other difficulties.
  221.  
  222. SAVING A FONT
  223. (with custom load address)
  224.  
  225. You only need a custom load address
  226. if you are planning to use the font
  227. with a BASIC program. Press Q to find
  228. out the load address of any PRG-file.
  229. (This can be fun.) The load address
  230. will be given as a multiple of 256;
  231. for example, 8*256+0.
  232.  
  233. To save a font with a custom load
  234. address, press S (for save), enter
  235. the filename, and press C (for custom
  236. load address). You will be asked for
  237. the load address as a multiple of
  238. 256. If the load address is 8*256,
  239. enter 8. Any real load address will
  240. be a multiple of 8*256: for example,
  241. 8*256, 16*256, 32*256 and so on. If
  242. the load address is divisible by
  243. 16*256, the font is being used as an
  244. alphafont; otherwise, it is being
  245. used as a betafont.
  246.  
  247. There is more about BASIC custom
  248. fonts in Chapter 3 of the Commodore
  249. 64 Programmer's Reference Guide.
  250.